<template>
  <div :class="sertc ? 'atutdeno5' : 'at'">这是vue3</div>
  <button @click="sertch">改颜色</button>
</template>

<script setup lang="ts">
import { ref } from 'vue'

let sertc = ref(true)
function sertch() {
  sertc.value = !sertc.value
}
</script>

<style scoped>
.atutdeno5 {
  color: aqua;
}
.at {
  color: rgb(102, 63, 63);
}
</style>
